﻿
using EntityModel.PageListInfor;
using EntityModel.Procurement;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace IServices.IStock
{
    /// <summary>
    /// 采购单接口
    /// </summary>
    public interface IStock
    {
        /// <summary>
        /// 获取采购单所有单数据
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<AikeApplet_Stocks>> GetAllStockDataAsync();

        /// <summary>
        /// 获取采购单集合数据
        /// </summary>
        /// <param name="StockID">采购单编号</param>
        /// <returns></returns>
        Task<AikeApplet_Stocks> GetEntityStockAsync(string StockID);

        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <param name="aikeApplet"></param>
        /// <returns></returns>
        Task<DbQueryResult> GetPageListStockAsync(AikeApplet_Stocks aikeApplet);

        /// <summary>
        /// 添加采购单数据
        /// </summary>
        /// <param name="_Stocks">采购单数据集</param>
        /// <returns></returns>
        Task<bool> AddStocksAsync(AikeApplet_Stocks _Stocks);

        /// <summary>
        /// 删除采购单数据
        /// </summary>
        /// <param name="StockID">采购单编号</param>
        /// <returns></returns>
        Task<bool> DeletedStocksAsync(AikeApplet_Stocks StockID);

        /// <summary>
        /// 修改采购单数据
        /// </summary>
        /// <param name="aikeApplet_Stocks">采购单数据集</param>
        /// <returns></returns>
        Task<bool> UpdateStocksAsync(AikeApplet_Stocks aikeApplet_Stocks);

        /// <summary>
        /// 判断数据是否存在
        /// </summary>
        /// <param name="StockID">采购单编号</param>
        /// <returns></returns>
        Task<bool> IsExistStocksAsync(string StockID);
    }
}
